const char *servicefind(int ports3){
   const char *service;
   switch (ports3){   
      case 5:
         service = "Remote Job Entry";
         break;
      case 7:
         service = "ECHO";
         break;
      case 9:
         service = "MSN";
         break;
      case 18:
         service = "Message Sent Protocol (MSP)";
         break;
      case 20:
         service = "FTP";
         break;
      case 21:
         service = "FTP";
         break;
      case 22:
         service = "SSH";
         break;
      case 23:
         service = "Telnet";
         break;
      case 25:
         service = "SMTP";
         break;
      case 29:
         service = "MSG ICP";
         break;
      case 37:
         service = "Time";
         break;
      case 42:
         service = "Host Name Server";
         break;
      case 43:
         service = "WhoIs";
         break;
      case 49:
         service = "Login Host Protocol";
         break;
      case 53:
         service = "DNS";
         break;
      case 69:
         service = "Trivial File Transfer Protocol (TFTP)";
         break;
      case 70:
         service = "Gopher Services";
         break;
      case 79:
         service = "Finger";
         break;
      case 80:
         service = "HTTP";
         break;
      case 103:
         service = "X.400 Standard";
         break;
      case 108:
         service = "SNA Gateway Access Server";
         break;
      case 109:
         service = "POP2";
         break;
      case 110:
         service = "POP3";
         break;
      case 115:
         service = "SFTP";
         break;
      case 118:
         service = "SQL Services";
         break;
      case 119:
         service = "Newsgroup";
         break;
      case 135:
         service = "Microsoft-RPC";
         break;
      case 137:
         service = "NetBIOS Name Service";
         break;
      case 139:
         service = "NetBIOS Datagram Service";
         break;
      case 143:
         service = "IMAP";
         break;
      case 150:
         service = "NetBIOS Session Service";
         break;
      case 156:
         service = "SQL Server";
         break;
      case 161:
         service = "SNMP";
         break;
      case 179:
         service = "Border Gateway Protocol (BGP)";
         break;
      case 190:
         service = "Gateway Access Control Protocol (GACP)";
         break;
      case 194:
         service = "Internet Relay Chat (IRC)";
         break;
      case 197:
         service = "Directory Location Service (DLS)";
         break;
      case 389:
         service = "Lightweight Directory Access Protocol (LDAP)";
         break;
      case 396:
         service = "Novel Netware of IP";
         break;
      case 443:
         service = "HTTPS";
         break;
      case 444:
         service = "Simple Network Paging Protocol (SNPP)";
         break;
      case 445:
         service = "Microsoft-DS";
         break;
      case 458:
         service = "Apple Quicktime";
         break;
      case 546:
         service = "DHCP Client";
         break;
      case 547:
         service = "DHCP Server";
         break;
      case 563:
         service = "SNEWS";
         break;
      case 1080:
         service = "SOCKS";
         break;
       default:
         service = "Service Unknown";
      }
      return service;
}

